<template>
  <div class="hello">
    <img src="../assets/lyy.jpeg">
    <h1>{{ msg }}</h1>
    <el-row>
      <el-button @click="fileUploadHandle">文件上下传</el-button>
      <el-button type="primary" @click="chatRoomHandle">ChatRoom</el-button>
      <el-button type="success" @click="websocketHandle">Websocket</el-button>
      <el-button type="info">信息按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>
    <br>
    <el-row>
      <el-button plain>朴素按钮</el-button>
      <el-button type="primary" plain>主要按钮</el-button>
      <el-button type="success" plain>成功按钮</el-button>
      <el-button type="info" plain>信息按钮</el-button>
      <el-button type="warning" plain>警告按钮</el-button>
      <el-button type="danger" plain>危险按钮</el-button>
    </el-row>
    <br>
    <el-row>
      <el-button round>圆角按钮</el-button>
      <el-button type="primary" round>主要按钮</el-button>
      <el-button type="success" round>成功按钮</el-button>
      <el-button type="info" round>信息按钮</el-button>
      <el-button type="warning" round>警告按钮</el-button>
      <el-button type="danger" round>危险按钮</el-button>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Please begin your divine operation !'
    }
    
  },
  methods:  {
    fileUploadHandle(){
      this.$router.push({name:'FileUpload'})
    },
    chatRoomHandle(){
      this.$router.push({name:'ChatRoom'})
    },
    websocketHandle(){
      this.$router.push({name:'WebSocket'})
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
  font-weight: normal;
}
</style>
